<div id="settingsdiv" class="center" style="display:none">
           
    <table border="0" class="center">
      <tr>  
        <td>从论坛的第<input id="listpagestartindex" type="text" oldvalue="$listpagestartindex" value="$listpagestartindex" placeholder="Inactive" style="width:30px">页开始扫描</td>
      </tr> 
      <tr>  
        <td>同时扫描下载<input id="scanthread" type="text" oldvalue="$scanthread" value="$scanthread" placeholder="Inactive" style="width:30px">个帖子（数值过大时，电脑会卡哦~）</td> 
      </tr>
      <tr>  
        <td>在图片视图中，将图片显示为<input id="col" type="text" oldvalue="$col" value="$col" placeholder="Inactive" style="width:30px">列</td>
      </tr> 
      <tr>  
        <td>在图片视图中，点击"另存图片时"将图片保存到<input id="copytodir" type="text" oldvalue="$copytodir" value="$copytodir" placeholder="Inactive" style="width:300px"></td>
      </tr>     
      
      
      
      

      <tr>
        <td colspan="1" align="center"><a class="btn btn-primary" id="settingokbtn">确定</a></td>   
      </tr>
    </table>
    
    #if($proptool.getValueBoolean("showimportforum"))
    <div>
    导入论坛
    <input id="forumid" type="text" placeholder="Inactive" style="width:100px">
    <a id="importbtn" class="btn btn-primary">导入</a>
    </div>
    #end
</div>


<script language="javascript">
$(function(){
	
	
	
	

	$("#settingbtn,#settingokbtn").click(function(){
		//setTimeout("slidetoggle('settingsdiv')",1000);
		elementid = "settingsdiv";
		$("#"+elementid).slideToggle(500);
		
		//setTimeout("$('#"+elementid+"').slideToggle(4000)",1000);
		//setTimeout("$('#"+elementid+"').remove()",5000);
			
	});
	
	$("#settingsdiv input, #listpagestopindex").blur(function(){
		id = $(this).attr("id");
		newvalue = $(this).val();
		oldvalue = $(this).attr("oldvalue");
		
		if(oldvalue != newvalue){
			$(this).attr("oldvalue",newvalue);
			console.log(id + ":" + name + ":" +  oldvalue + "->" + newvalue);
			
			$.post('/hezi/setting?action=update',{id: id, 
								newvalue:newvalue,
								},function(theback)
			  {
				console.log("back:" + theback);
				consolelog(theback);
				}
			);
			
		}
		
	});
	
})

function slidetoggle2(elementid){
	$("#"+elementid).slideToggle(1000);
	//setTimeout("$('#"+elementid+"').remove()",4000);
}
</script>
<style type="text/css">

#settingsdiv{
	//border-bottom:#1abc9c 2px dotted;
	//border-left:#1abc9c 2px dotted;
	//border-right:#1abc9c 2px dotted;
	//border-top:#1abc9c 2px dotted;
	//border:#1abc9c 1px dotted;
	padding-bottom:10px;
	width:100%;
	//margin-top:10px;
	font-size:16px;
	background-color: #ecf0f5;
	opacity:0.9;
}
#settingsdiv td{
	padding:2px 10px;
	vertical-align: middle;
}
#settingsdiv input{
	margin-top:8px;
	padding:2px;
}
</style>